package com.atguigu.homework.exer1;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/14 16:33
 * @注释
 */
public abstract class Vehicle {
    private int wheels; //表示轮子数量

    public abstract void drive();

    @Override
    public String toString() {
        return "轮子的个数为:" + wheels;
    }

    public Vehicle(int wheels) {
        this.wheels = wheels;
    }
}
